﻿using System;
using System.Xml.Serialization;

namespace Limestone.Fields
{
    [Serializable]
    public class TextFieldSetting : FieldSetting, IFieldSetting
    {
        [XmlAttribute]
        public bool Multiline { get; set; }
        [XmlAttribute]
        public TextEditMode EditMode { get; set; }

        public TextFieldSetting()
            : base(FieldType.TextField, "")
        {
            Name = "";
            EditMode = TextEditMode.Text;
        }

        public TextFieldSetting(string name)
            : base(FieldType.TextField, name)
        {
            EditMode = TextEditMode.Text;
        }
    }
}
